Skip to content

Added index.html pattern#256

Merged
wrabit merged 1 commit intomainfrom
index_file_pattern
Mar 2, 2025
Merged

Added index.html pattern#256
wrabit merged 1 commit intomainfrom
index_file_pattern

Conversation

@wrabit
Copy link
Copy Markdown
Owner

@wrabit wrabit commented Mar 2, 2025

This PR introduces ability to choose a default component when calling a directory path by using an index.html.

Before:

- cotton
  - comp
    - header.html
    - main.html


<c-comp.main>
  <c-comp.header />
</c-comp.main>

After:

- cotton
  - comp
    - header.html
    - index.html


<c-comp>
  <c-comp.header />
</c-comp>

@wrabit wrabit merged commit 44c8360 into main Mar 2, 2025
@wrabit wrabit deleted the index_file_pattern branch March 2, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant